﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="KeyWordEditor.aspx.cs" Inherits="WebApp1.AdminSection.KeyWordEditor" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>

     <link href="/content/css/bootstrap.css?v=1.0.0.7.3" rel="stylesheet">
</head>
<body style="margin:30px;background-color:rgb(231, 235, 242);">
    <form id="form1" runat="server">
    <div>
    <table>
    <tr>
     
    <td>
    Select category
    </td>
    <td>
        <asp:DropDownList ID="cmbCategoryName" runat="server" AutoPostBack="True" 
            onselectedindexchanged="cmbCategoryName_SelectedIndexChanged">
        </asp:DropDownList>
    </td>
    <td>
    <asp:Button ID="btnGetKeyWords" CssClass="btn btn-primary" Text="Get" 
            runat="server" onclick="btnGetKeyWords_Click" />
    </td>
   
    <td>
    <asp:Label ID="lblSelectedCategory" runat="server" style="font-size:16px;color:green;"></asp:Label>
    </td>
    </tr>
    

    </table>
    <table style="width:100%">
    <tr>
    <td style="background-color:#f6f6f6;padding:5px;">
    <h3> Add new keywords </h3>

      <asp:TextBox ID="txtAddedKeywords" runat="server" Rows="10" TextMode="MultiLine" style="font-size:18px;color:#b00;"
            Height="80px" Width="80%"></asp:TextBox>
            <p>
                <asp:Button ID="btnAddKeywords" CssClass="btn btn-primary" Text="Add Keywords" 
            runat="server" onclick="btnAddKeywords_Click" />

             <asp:Label ID="lblStatusAddMessage" runat="server" CssClass="success"></asp:Label>
            </p>
                <hr />
    <h3> Create a New Category </h3>

     <asp:TextBox ID="txtNewCategory" runat="server" style="font-size:16px;color:green;"
            Width="50%"></asp:TextBox>
            <asp:Button ID="btnCreateNewCategory" CssClass="btn btn-warning" Text="Add New category" 
            runat="server" onclick="btnCreateNewCategory_Click" />
            <p>
                

             <asp:Label ID="lblCreateCategory" runat="server" CssClass="success"></asp:Label>
            </p>

    
    </td>
    

    <td style="padding:5px;background-color:#fff;">
    <h3>Total list of keywords (Edit & Save)</h3>
    <asp:TextBox ID="txtKeywords" runat="server" Rows="10" TextMode="MultiLine" style="font-size:18px;color:#b00;"
            Height="300px" Width="95%"></asp:TextBox>
<p>
         <asp:Button ID="btnSave" CssClass="btn btn-danger" Text="Complete Save" 
            runat="server" onclick="btnSave_Click" />
             <asp:Label ID="lblStatusCompleteMessage" runat="server" CssClass="success"></asp:Label>

            </p>

    </td>
    
    </tr>
    </table>

   

    <hr />
    <h4>Please edit these keywords and select ( ADD / COMPLETE SAVE )</h4>
    <p>Note: Complete save will overwrite every thing, what ever is the below textbox is going tobe full list.</p>
    <asp:Button ID="btnDelete" CssClass="btn btn-danger" Text="Delete Selected Category" 
            runat="server" onclick="btnDelete_Click" />
    </div>
    </form>
</body>
</html>
